import request from '@/utils/request'

// 查询表单记录列表
export function listFormrecording(query) {
  return request({
    url: '/modularbusiness/formrecording/list',
    method: 'get',
    params: query
  })
}

// 查询表单记录详细
export function getFormrecording(frid) {
  return request({
    url: '/modularbusiness/formrecording/' + frid,
    method: 'get'
  })
}

// 新增表单记录
export function addFormrecording(data) {
  return request({
    url: '/modularbusiness/formrecording',
    method: 'post',
    data: data
  })
}

// 修改表单记录
export function updateFormrecording(data) {
  return request({
    url: '/modularbusiness/formrecording',
    method: 'put',
    data: data
  })
}

// 删除表单记录
export function delFormrecording(frid) {
  return request({
    url: '/modularbusiness/formrecording/' + frid,
    method: 'delete'
  })
}
